<?php
    //--- Giu gia tri cua form
    $full_name = array(
                        "name"  => "full_name",
                        "id"    => "full_name",
                        "size"  => "30",
                        "value" => $info["fullname"]
                    );

    $phone = array(
                        'name'        => 'phone',
                        'id'          => 'phone',
                        'size'        => '30',
                        'value'       => $info["phone"],
                    );
    $email = array(
                        'name'        => 'email',
                        'id'          => 'email',
                        'size'        => '30',
                        'value'       => $info["email"],
                    );
        $submit = array(
                        'name'        => 'ok',
                        'value'          => 'UPDATE',
                    );
?>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link href="<?php echo base_url('public_source/css_source/register.css')?>" rel="stylesheet" type="text/css">
    </head>
    <body>
        <div ID="box_entry">
            <div id="Detail_Register">
                <div class="error">
                    <?php
                        echo validation_errors('<li>','</li>');
                        if(isset($error) && $error!="" && !empty($error))
                            echo $error;
                    ?>
                </div>
                <form action="" method="post" enctype="multipart-formdata">
                    <table cellspacing="15px">
                        <tr>
                            <td>Họ và tên</td>
                            <td><?php echo form_input($full_name);?></td>
                        </tr>
                        <tr>
                            <td>Địa chỉ Email</td>
                            <td><?php echo form_input($email);?></td>
                        </tr>
                        <tr>
                            <td>Điện thoại</td>
                            <td><?php echo form_input($phone);?></td>
                        </tr>
                        <tr>
                            <td>Địa chỉ nhà</td>
                            <td><textarea name="address" style="height: 70px; width: 250px"><?php echo $info["address"] ?></textarea></td>
                        </tr>
                        <tr>
                            <td>Ghi chú</td>
                            <td><textarea name="note" style="height: 100px; width: 250px"><?php echo $info["note"] ?></textarea></td>
                        </tr>
                        <tr>
                            <td>Active</td>
                            <td>
                                <select style="padding: 4px; width: 150px" name="active">
                                    <option value="0">Chưa active</option>
                                    <option value="1">Đã active</option>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td></td>
                            <td><?php echo form_submit($submit)?></td>
                        </tr>
                    </table>
                </form>
            </div>
        </div>
    </body>
</html>